package com.halflife.comeElectricity.member.rider;

/**
 * Created by zhaoyf on 2018/5/23.
 */
public enum RiderStatus {
    INIT(-1, "未注册"),NORMAL(0, "未交押金激活"), CANCEL(1, "已交押金激活");
    int value;
    String name;
    RiderStatus(int ordinal,String name){
        this.value = ordinal;
        this.name = name;
    }

    public String getCName() {
        return this.name;
    }

    public int getValue() {
        return this.value;
    }

    public static String getCNameByValue(int value) {
        for(RiderStatus r : RiderStatus.values()){
            if (r.value == value) {
                return r.getCName();
            }
        }
        return "";
    }
}
